package us.wili.dev.model.base;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import us.wili.dev.common.model.BaseModelWithId;

public class BaseActivity extends BaseModelWithId implements Serializable {
    @ApiModelProperty(value="活动名字")
    private String activityName;

    @ApiModelProperty(value="活动标签")
    private String activityB;

    @ApiModelProperty(value="活动图片")
    private String activityPic;

    public String getActivityName() {
        return activityName;
    }

    public void setActivityName(String activityName) {
        this.activityName = activityName == null ? null : activityName.trim();
    }

    public String getActivityB() {
        return activityB;
    }

    public void setActivityB(String activityB) {
        this.activityB = activityB == null ? null : activityB.trim();
    }

    public String getActivityPic() {
        return activityPic;
    }

    public void setActivityPic(String activityPic) {
        this.activityPic = activityPic == null ? null : activityPic.trim();
    }

    public void copyPropertiesFrom(BaseActivity source) {
        this.setActivityName(source.getActivityName());
        this.setActivityB(source.getActivityB());
        this.setActivityPic(source.getActivityPic());
    }

    public void copyAndIgnoreNullFrom(BaseActivity source) {
        if (source.getActivityName() != null) {
            this.setActivityName(source.getActivityName());
        }
        if (source.getActivityB() != null) {
            this.setActivityB(source.getActivityB());
        }
        if (source.getActivityPic() != null) {
            this.setActivityPic(source.getActivityPic());
        }
    }
}